﻿@model Dictionary<string, string>
@{
    string text = Model["Text"];
    string ngModel = Model["Model"];
    string name = Model["Name"];
    string msg = Model["Message"];
    string opt = Model["Options"];
}
@Html.Partial("Control/_Required", new Dictionary<string, string>
{
    { "Property", name },
    { "Message", msg }
})
<label>@text</label>
<div class="form-group" ng-class="{'has-success': !form.@name.$error.required, 'has-error': form.@name.$dirty && form.@name.$invalid}">
    <select ng-model="@ngModel" name="@name" class="form-control" ng-options="@opt">
        <option value=""></option>
    </select>
</div>